::function_name
Function attribute #[named]
that generates a function_name!
macro
in the scope of the function's body.
The generated function_name!()
is a macro that expands to
the name of the annotated function, as a string literal.
Examples
use named;
Since the generated function_name!
expands to a string literal,
it can be used with other macros such as concat!
:
extern crate function_name;